<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd"
    >
<html lang="en">
<head>
    <title><!-- Insert your title here --></title>
    <script>
    $(document).ready(function() {
        $('#id_professor').autocomplete([{% for professor in lista_professores %}"{{professor.detalheusuario.nome}}",{% endfor %}], {
			highlight: false,
			scroll: true,
			scrollHeight: 300
		});
	$('#id_tipo').autocomplete([{% for materia in lista_materia %}"{{materia.tipo}}",{% endfor %}], {
			highlight: false,
			scroll: true,
			scrollHeight: 300
			});
       $('#id_inicio').attr("readonly","readonly").addClass("nao_editavel");
       $('#id_fim').attr("readonly","readonly").addClass("nao_editavel");
    });
    </script>
    
    
</head>
<body>
    <form action="/salvar_aula_aluno/{{id_aluno}}/" method="POST"
    <table class="marca_aula bt-space10	">
        <tr>
            <th> Professor: </th>
            <td> <input name="professor" id="id_professor" type="text"> </td>
        </tr>
        <tr>
            <th> Local da Aula: </th>
            <td>
                <select name="local">
                {% for local in lista_locais %}
                <option value="{{local.nome}}">{{local.nome}}</option>
                {% endfor %}
				<option value="Casa do Aluno">Casa do Aluno</option>
                </select>
            </td>
	</tr>
	
        {{aula_form.as_table}}
        </table>
    <input class="button green size-80 fl-space2" type='submit' value="Salvar" onSubmit="return confirm('Você deseja realmente enviar esses dados?');">
    
    </form>
</body>
</html>
